package com.zhijian.warehouse.manage.service;

import com.gg.reader.api.dal.GClient;
import com.zhijian.warehouse.manage.entity.vo.request.SseMessageSearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.AccessAioAndroidBingVo;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import javax.servlet.http.HttpServletRequest;

public interface AccessNotifyService {

    String getReadEpc(SseMessageSearchVo sseMessageSearchVo, HttpServletRequest request);

    /**
     * 初始化一体机
     * @param sseMessageSearchVo
     * @param client
     * @param accessAioAndroidBingVo
     */
    void initReadEpc(SseMessageSearchVo sseMessageSearchVo, GClient client, AccessAioAndroidBingVo accessAioAndroidBingVo);


    void rfIdConnect(String epc, String androidIp);

    SseEmitter sendConnect(Long doorId);

    SseEmitter doorReconnect(boolean flag, String msg, Long doorId);
}
